package name.hankc.spring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import name.hankc.spring.bean.complexfield.Person2;

public class ComplexfieldAnnoApplication {
  public static void main(String[] args) throws Exception {
    ApplicationContext ctx = new AnnotationConfigApplicationContext("name.hankc.spring.bean.complexfield");
    Person2 person = ctx.getBean(Person2.class);
    System.out.println(person);
  }
}